import http from '@/utils/http'
// 获取联想建议
export const getSearchSuggestions = q => {
  return http({
    method: 'get',
    url: 'v1_0/suggestion',
    params: {
      q
    }
  })
}

// 获取搜索结果
export const getSearchResults = params => {
  return http({
    method: 'get',
    url: 'v1_0/search',
    params
  })
}
